From 6697f30a602840f2e93a627856c918b538df3ee0 Mon Sep 17 00:00:00 2001 From: Alex Williamson Date: Sun, 15 Jul 2007 13:32:56 -0600 Subject: [PATCH] [IA64] Fix a memory allocation bug in MCA Signed-off-by: Kazuhiro Suzuki --- xen/arch/ia64/linux-xen/mca.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/arch/ia64/linux-xen/mca.c b/xen/arch/ia64/linux-xen/mca.c index 68fa284e2d..fb9686a9ba 100644 --- a/xen/arch/ia64/linux-xen/mca.c +++ b/xen/arch/ia64/linux-xen/mca.c @@ -184,7 +184,7 @@ static ia64_state_log_t ia64_state_log[IA64_MAX_LOG_TYPES]; #define IA64_LOG_ALLOCATE(it, size) \ do { \ unsigned int pageorder; \ - pageorder = get_order_from_bytes(sizeof(struct ia64_mca_cpu)); \ + pageorder = get_order_from_bytes(size); \ ia64_state_log[it].isl_log[IA64_LOG_CURR_INDEX(it)] = \ (ia64_err_rec_t *)alloc_xenheap_pages(pageorder); \ ia64_state_log[it].isl_log[IA64_LOG_NEXT_INDEX(it)] = \ -- 2.30.2